<template>
  <div>
    <el-button @click="hello" type="primary">神奇的按钮</el-button>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  data() {
    return {
    };
  },
  methods:{
    hello(){
      this.$axios.get("/api/hello/test").then(res=>{
        this.$message.success(res.data)
      })
    }
  }
}
</script>
